home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / GraphicViewers / ViewGif2 / Source / FileQueue.h < prev    next >
Text File  |  1990-02-07  |  2KB  |  60 lines

  1. /*****************************************************************************/
  2. /* FileQueue.h                                     */
  3. /* interface file of FileQueue class                          */
  4. /* January 1990  Carl F. Sutter                             */
  5. /*****************************************************************************/
  6.  
  7. #import <objc/Object.h>
  8. #import <appkit/ScrollView.h>
  9.  
  10. #define MAXSELECTABLE 1024
  11. @interface FileQueue:Object
  12.    {
  13.    // outlets
  14.    id        queuePanel;            // connect to queue panel
  15.    id        queueScroll;            // connect to custom ScrollView
  16.    id        queueMatrix;            // connect to sample TextFieldCell(s)
  17.    
  18.    // internal instance variables
  19.    BOOL        bPaused;            // flag if pasued button is set 
  20.    BOOL        bSendWhenReady;            // send a file when available 
  21.    int        nNumRows;            // number of items in the queue 
  22.    int        nSelectedRows[MAXSELECTABLE];    // array of selected item indexes 
  23.    int        nNumSelected;            // number of selected items 
  24.    id        target;                // target object to send items to 
  25.    SEL         action;                // method to recieve items 
  26.    }
  27.  
  28. // factory methods
  29. + new;
  30. + new:(id )targ action:(SEL )act; 
  31.  
  32. // outlet initialization methods
  33. - setQueuePanel:anObject;
  34. - setQueueScroll:anObject;
  35. - setQueueMatrix:anObject;
  36.  
  37. /* application and window delegate messages */
  38. - windowWillResize:sender toSize:(NXSize *)frameSize;
  39.  
  40. // actions from the panel
  41. - pause:sender;
  42. - remove:sender;
  43. - toTop:sender;
  44. - toBottom:sender;
  45.  
  46. // methods that can be called from the controlling object
  47. - show:sender;
  48. - setTarget:(id)targ; 
  49. - setAction:(SEL)aSelector; 
  50. - (BOOL)addItem:(const char *)szFileName;
  51. - (char *)retrieveNext;
  52. - retrieveNextWhenReady;
  53.  
  54. // internal methods
  55. - setup;
  56. - (BOOL)countOneSelected:cell;
  57. - sendNext;
  58.  
  59. @end
  60.